package com.xm.zcf.domain.cart;

import com.xm.zcf.domain.product.Product;

/**
 * Created by Administrator on 2017/4/5.
 */
public class CarItem {
    private Product product;
    private Integer count;
    private Double subTotal=0.0;

    public Product getProduct() {
        return product;
    }

    public void setProduct(Product product) {
        this.product = product;
    }

    public Integer getCount() {
        return count;
    }

    public void setCount(Integer count) {
        this.count = count;
    }

    public Double getSubTotal() {
        return product.getShopPrice()*count;
    }

    public void setSubTotal(Double subTotal) {
        this.subTotal = subTotal;
    }
}
